<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.util.*" %>  
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page import ="ee.edisoft.beans.*" %>
<jsp:useBean id="headers" scope="application" class="ee.edisoft.beans.Headers"/>  
<jsp:useBean id="details" scope="application" class="ee.edisoft.beans.Details"/>  

<html>
<head>
<style>
body, td {font-family:verdana;font-size:10pt;}
</style>
<title>header panel</title>
</head>
<body>
		<div align="center">choose invoice for detail</div>
	<form name="ediForm"
	    action="testedi"
	    method="GET">
	    <a href="./">back</a></div>
	<div><span></span></div>
	    
<div style="background-color:lightblue; font-family:verdana">	

	<p>

<table width="40%" cellpadding="5" bordercolor="#000066" bgcolor="#FFFFFF" border="1" cellspacing="0">
<tr>
<td>documenttype</td>
<td>documentnumber</td>
<td>documentdate1</td>
<td>documentdate2</td>
</tr> 
    <c:forEach items="${headers.list}" var="itemh">
    	<tr>
    	<td>${itemh.documenttype}</td>
		<td>${itemh.documentnumber}</td>
		<td>${itemh.documentdate1}</td>
		<td>${itemh.documentdate2}</td>
		</tr> 
		
    </c:forEach>
  
</table>

<table width="40%" cellpadding="5" bordercolor="#000066" bgcolor="#FFFFFF" border="1" cellspacing="0">
<tr>
<td>lines</td>
<td>code</td>
<td>quantity</td>
<td>netprice</td>
</tr> 
    <c:forEach items="${details.list}" var="item">
    	<tr>
    	<td>${item.linenumber}</td>
		<td>${item.supplieritemcode}</td>
		<td>${item.invoicequantity}</td>
		<td>${item.invoiceunitnetprice}</td>
		</tr> 
		
    </c:forEach>
 
</table>

<br>
  <% if (request.getAttribute("response") != null) {
    out.print("<b>Response </b><br/>");
    out.print(request.getAttribute("response"));
    out.print("<br/>");
  }%>
<br>
</div>	
	<div>	
	    <input type="hidden" name="action" value="CHECKOUT">
	    <input type="submit" name="Checkout" value="Checkout">
	</div>

</body>
</html>